package recados;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;

public class Log extends Form implements CommandListener {

    private Displayable back;

    public Log() {
        super("Registro");

        addCommand(new Command("Voltar", Command.BACK, 0));

        setCommandListener(this);
    }

    public void commandAction(Command c, Displayable d) {
        Recados.getInstance().setCurrent(back);
    }

    public void setBack(Displayable back) {
        this.back = back;
    }
}
